#!/bin/bash
# Compile script for macOS/Linux
echo "Compiling Snake Game..."

g++ -std=c++11 main.cpp snake.cpp -o snake_game.o

if [ $? -eq 0 ]; then
    echo "Compilation successful!"
    echo "Executable: snake_game"
    echo "Starting Snake Game..."
    ./snake_game.o
else
    echo "Compilation failed!"
    exit 1
fi
